package cn.hospital.dao;

import cn.hospital.entity.Department;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DepartmentMapper {
    /**
     * 查询科室信息
     *
     * @return
     */
    List<Department> findDeparment();

    /**
     * 根据科室ID查询科室所属的医院id
     *
     * @param departmentId 科室id
     * @return
     */
    Department findByDepartmentId(String departmentId);

    /**
     * 根据医院id查询医院下的科室
     *
     * @param hospitalId 医院id
     * @return
     */
    List<Department> findByhospitalId(String hospitalId);

    /**
     * 根据用户查询所属科室
     *
     * @param departmentId \
     * @return
     */
    Department depeartmentId(Integer departmentId);

    /**
     * 根据科室id查询科室名称
     *
     * @param departmentId
     * @return
     */
    Department selectByDepartmentId(Integer departmentId);
}